﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using EasyButtons;
/// <summary>
/// 测试DC用
/// </summary>
public class GenMoreUIs : MonoBehaviour
{
    public Transform genRoot;
    public List<GameObject> uis;

    public int GenCount=10;
    // Start is called before the first frame update
    void Start()
    {
        
    }

    [EasyButtons.Button("GenMoreUIs")]
    public void GenMore()
    {
        foreach (var ui in uis)
        {
            for (int i = 0; i < GenCount; i++)
            {
                Instantiate(ui,genRoot,false);
            }
        }
    }
}
